<template>
  <el-carousel :interval="6000" height="calc(100vh - 80px)">
    <el-carousel-item v-for="item in slide" :key="item.id">
      <img :src="item.imgUrl" class="image" />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  data() {
    return {
      slide: [
        {
          id: "001",
          imgUrl: require("@/assets/imgs/1.png"),
        },
        {
          id: "002",
          imgUrl: require("@/assets/imgs/1.png"),
        },
        {
          id: "003",
          imgUrl: require("@/assets/imgs/1.png"),
        },
      ],
    };
  },
};
</script>

<style>
 img {
  height: 100%;
  width: 100%;
}
</style>